package main

import (
	"fmt"
)
// 接口的继承
type Ainter interface{
	test1()
	//test2() //这样就会报重复定义
}

type Binter interface{
	test2()
}

type Cinter interface{
	Ainter
	Binter
	test3()
}
type Student struct {

}
// interface 是个引用类型的 接收的是个地址

func (s Student) test1(){}
func (s Student) test2(){}
func (s Student) test3(){}

func main(){
	var s Student
	var a Cinter = s// 可以实现实现接口的指针赋值
	fmt.Println(a)
}